<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@attribute name="total"%>
<%@attribute name="current"%>
	<div class="row" style="background-color: white">

			<c:if test="${current != 1}">
				<a class="pages" href="./list.htm?page=${current - 1}">prev</a>	
			</c:if>
			
			<c:forEach var="index" begin="1" end="${total}">
				<c:if test="${current == index}">
					<span id="current">${index}</span>
				</c:if>
				<c:if test="${current != index}">
					<a class="pages" href="./list.htm?page=${index}">${index}</a>
				</c:if>
			</c:forEach>
			<c:if test="${current != total}">
				<a class="pages" href="./list.htm?page=${current + 1}">next</a>		
			</c:if>

	</div>